package com.qingcloud.adminbackend.entity.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
import java.util.UUID;

/**
 * @author zhengjibin
 * @version 1.0.0
 * @ClassName UserBassicDTO.java
 * @Description 网格化用户信息
 * @createTime 2021年12月20日 16:51:00
 */
@Data
public class UserGridDataDTO {
    @ApiModelProperty(value = "用户ID", example = "")
    @NotNull(message = "用户id不能为空")
    private String userId;

    @ApiModelProperty(value = "溯源任务归属id")
    private String taskOrgId;

    @ApiModelProperty(value = "溯源任务附加权限id")
    private List<String> taskOrgIds;

    @ApiModelProperty(value = "网格化附加身份  gridFlag:是否网格员(污染防治APP用户)," +
            "captainFlag:是否网格长(污染防治APP用户),appFlag:大气专业版APP用户," +
            "reviewOfficerFlag:是否复审员(考核站数据审核用户),auditorFlag:是否审核员(考核站数据审核用户)")
    private IdentityData identity;

    @ApiModelProperty(value = "默认区域")
    private String domainId;

    @ApiModelProperty(value = "可用区域")
    private List<String> domainIds;

    @Data
    public static class IdentityData{
        @ApiModelProperty(value = "'是否网格员 0不是 1是'")
        private Integer gridFlag = 0;

        @ApiModelProperty(value = "'是否网格长 0不是 1是'")
        private Integer captainFlag = 0;

        @ApiModelProperty(value = "'是否APP用户 0不是 1是'")
        private Integer appFlag = 0;

        @ApiModelProperty(value = "'是否复审员 0不是 1是'")
        private Integer reviewOfficerFlag = 0;

        @ApiModelProperty(value = "'是否审核员 0不是 1是'")
        private Integer auditorFlag = 0;

        @ApiModelProperty(value = "'省 sys_domain表'")
        private Integer province;

        @ApiModelProperty(value = "'溯源地区市级编码 sys_domain表'")
        private Integer city;

        @ApiModelProperty(value = "'溯源地区区县编码 sys_domain表'")
        private Integer district;

        @ApiModelProperty(value = "'溯源地区街道编码 sys_domain表'")
        private Integer street;
    }
}
